package singleton.static_inner_class;

/**
 * @Question 在外部类加载多次之后，内部类会被多次加载吗？
 */
public class Singleton {

    private Singleton() {
    }

    public static final Singleton getInstance() {
        return SingletonHolder.instance;
    }

    private static class SingletonHolder {
        private static final Singleton instance = new Singleton();
    }

}
